![]() |
SystemClick |
||||
Header: | Events.h | Carbon status: | Unsupported | |
Handles an event after FindWindow returns the inSysWindow constant.
void SystemClick ( const EventRecord *theEvent, WindowRef theWindow );
A pointer to the event structure for the event.
A reference to the window in which the mouse-down event occurred. Pass the window pointer returned by FindWindow in this parameter.
If a mouse-down event occurred in a desk accessory’s window, the SystemClick function determines which part of the desk accessory’s window the cursor was in when the mouse button was pressed and routes the event to the appropriate desk accessory as necessary.
If the mouse button was pressed while the cursor was in the content region of the desk accessory’s window and the window is active, SystemClick sends the mouse-down event to the desk accessory to process. If the mouse-down event occurred in the content region of the window and the window is inactive, SystemClick makes it the active window. It does this by sending your application an activate event to deactivate its front window and directing an event to the desk accessory to activate its window.
If the mouse button was pressed while the cursor was in the drag region or go-away region, SystemClick calls the Window Manager function DragWindow or TrackGoAway, as appropriate. If TrackGoAway reports that the user closed the desk accessory, SystemClick sends a close message to the desk accessory.
Not supported in Carbon. Not available in Carbon.
Desk accessories are not supported in Carbon.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)